package com.mvp.shq.washer.ui.coupon;

import com.mvp.shq.washer.base.BaseModel;
import com.mvp.shq.washer.base.BasePresenter;
import com.mvp.shq.washer.base.BaseView;
import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.entity.Coupon;
import com.mvp.shq.washer.entity.result.CouponResult;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2017/8/24.
 */

public interface CouponConstract {
    interface Model extends BaseModel{
        Observable<BaseResult<CouponResult>> coupons(String token, String userId, int pageNo, int pageSize);
    }
    interface View extends BaseView{
        void couponsS(List<Coupon> list);
        void couponsF(String msg);
    }
    public abstract class Presenter extends BasePresenter<Model,View>{
        abstract void coupons(int pageNo,int pageSize);
    }
}
